/**
 * 04/12/2013
 * 
 * RoleDAOInterface
 * 
 * Copyright GPL
 */
package jtm.project.exercise;

import java.util.List;

/**
 * this is an interface to force the classes to use this method(DAO Pattern)
 * @author Javier Tejedor
 */
public interface RoleDAOInterface {
	
	public Role selectById(int id);
	public List<Role> selectAll();
	public int insert(Role role);
	public void update(Role role);
	public void delete(Role role);
	public List<Role> selectAllByName(String name);
	public void saveOrUpdate(Role role);

}
